package logic

import (
	"bluebell/dao/redis"
	"bluebell/models"
	"strconv"
)

func PostVote(userID int64, param *models.ParamVoteData) (err error) {
	return redis.VoteForPost(strconv.Itoa(int(userID)), param.PostID, float64(param.Direction))
}
